package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * Mapper注解：
 *   1.MyBatis框架的注解;
 *   2.告诉Spring框架,为该接口创建实现类;
 */
@Mapper
public interface UserMapper {
    //@Insert("INSERT INTO blog.user(id,username,password,nickname,created) VALUES (#{id},#{username},#{password},#{nickname},#{created})")
    int insertUser(User user);
}










